#! /usr/bin/python3

dict = {'Name':'Runoob','Age': 7, 'class': 'First'}

print(dict)

dict1 = dict.copy()
dict.clear()
print("dict: ", dict)
print("dict1: ", dict1)

dict2 = dict1.fromkeys(['Name', 'Age'])
print("fromkeys(): ",dict2)

var1 = dict2.get("Name")
print("get(key):", var1)

print("'Age in dict2': ", 'Age' in dict2)
print('items(): ', dict2.items())

print("keys()", dict2.keys())

dict3 = {'Name': 'baidu', 'Age': 15}
print("dict2: ",dict2)
print("dict3: ", dict3)

dict2.update(dict3)
print("dict2.update(dict2)", dict2)

print('values():', dict2.values())

print("popitem(): ", dict2.popitem())
